]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Clear save_id when removing idle_save_application_usage()
authorOwen W. Taylor <otaylor@fishsoup.net>
Tue, 18 Aug 2009 22:02:53 +0000 (18:02 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Fri, 28 Aug 2009 16:34:04 +0000 (12:34 -0400)
When we remove the timeout for saving application usage when application
usage is disabled, set the save_id member variable to 0.

http://bugzilla.gnome.org/show_bug.cgi?id=589676

src/shell-app-monitor.c

index 453a5f53633421a1cd9721cadd8893cb9b4ac7a4..a6409574a09e077558ecf7c14fff9cd15f24c75f 100644 (file)
@@ -1657,7 +1657,10 @@ update_enable_monitoring (ShellAppMonitor *monitor)
     {
       monitor->watched_window = NULL;
       if (monitor->save_id)
-        g_source_remove (monitor->save_id);
+        {
+          g_source_remove (monitor->save_id);
+          monitor->save_id = 0;
+        }
     }
 
   monitor->enable_monitoring = enable;